<div id="top_sidebar" class="noprint">
	<div class="outer shop_bag">
		<div class="inner clearfix">
			<h3>My Shopping Bag</h3>
			<span>Bag contains:</span>
			<div class="bag">
				<?php 
							if(!isset($_GET[confirm])){
								$CART = show_cart();
								if($CART[status] == 'filled'){
									$basket_url = get_option('home').'?showCart=1&cPage='. current_page(3);
									echo "<a href='$basket_url'>";
									echo "$CART[total_item_num] items <br/>Total: $CART[total_price] "; echo get_option('wps_currency_code'); 
									echo "</a>";	
								}
								else {
									echo '<span class="error">Your cart is <br/>empty!</span>';
								}	
							}
							else {
									echo '<span class="error">Your cart is <br/>empty!</span>';
							}
						?>
			</div><!--bag -->
		</div><!--inner -->
	</div><!--outer -->
	
	<?php if (is_home()) { ?>
		<div class="outer how_it_works">
			<div class="inner">
				<h3><a href="<?php echo get_option('home'); ?>/help">How it works</a></h3>
				<ul>
					<li><a href="<?php echo get_option('home'); ?>/help" class="browse">Browse</a></li>
					<li><a href="<?php echo get_option('home'); ?>/help" class="find">Find</a></li>
					<li><a href="<?php echo get_option('home'); ?>/help" class="download">Download</a></li>
				</ul>
				<h4>It's that easy!</h4>
			</div><!--inner -->
		</div><!--outer -->
	
	<?php } else { ?>
	
	<?php } ?>
	
</div><!--top_sidebar -->